package com.example.zy_22106107.service;

import com.example.zy_22106107.bean.UserBean;

import java.util.List;

public interface UserService {
    UserBean login(String username, String password);
    boolean register(String username, String email, String password);
    boolean deleteJournalById(int id);
    List<UserBean> searchJournalByTitle(String title);
    // 添加新论文
    boolean addJournal(UserBean journalBean);
    // 新增的论文更新方法
    boolean updateJournal(int id, UserBean journalBean);

    UserBean searchJournalById(Long id);
}
